import Home from '../component/Home'
import About from '../component/About'
import Contact from '../component/Contact'
import {RouteConfig} from 'react-router-config'

// interface RouteConfigs{
//   path:string
//   exact:boolean
//   component:typeof Home
// }

// const childRoutes = {
//   Home,
//   About,
//   Contact
// }

const routes:RouteConfig = [
  {
    path:'/',
    exact:true,
    component:Home
  },
  {
    path:'/about',
    exact:true,
    component:About
  },
  {
    path:'/contact',
    exact:true,
    component:Contact
  }
]

export default routes;